import { S } from '../../s';
import { IPSAppCodeList } from '../codelist/ipsapp-code-list';
import { IPSAppDESearchView } from './ipsapp-desearch-view';
import { IPSAppDESearchView2 } from './ipsapp-desearch-view2';
import { PSAppDEViewImpl } from './psapp-deview-impl';

export class PSAppDESearchViewImpl
  extends PSAppDEViewImpl
  implements IPSAppDESearchView, IPSAppDESearchView2
{
  protected quickgrouppscodelist: IPSAppCodeList;
  getQuickGroupPSCodeList(): IPSAppCodeList | null {
    return (
      this.quickgrouppscodelist ||
      (this.quickgrouppscodelist = this.fillObjectModel(
        S._8,
        this.M.getQuickGroupPSCodeList,
        S._2d4,
      ) as IPSAppCodeList)
    );
  }

  get enableQuickGroup(): boolean {
    return this.M.enableQuickGroup;
  }

  get enableQuickSearch(): boolean {
    return this.M.enableQuickSearch;
  }

  get enableSearch(): boolean {
    return this.M.enableSearch;
  }

  get expandSearchForm(): boolean {
    return this.M.expandSearchForm;
  }

  get loadDefault(): boolean {
    return this.M.loadDefault;
  }
  get cls(): string {
    return 'PSAppDESearchViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._2f || cls == S._30) return true;
    return super.instanceof(cls);
  }
}
